<?php

namespace Modules\AdminPermission\Console;

use Illuminate\Console\Command;
use Modules\AdminPermission\Services\PermissionService;


class AddPermissionDataCommand extends Command
{
    /**
     * The name and signature of the console command.
     *
     * @var string
     */
    protected $signature = 'permission:add-data';

    /**
     * The console command description.
     *
     * @var string
     */
    protected $description = 'permission add data';

    public function handle()
    {
        app(PermissionService::class)->addPermissionDataByConfig();
    }
}
